﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Mp3Lib;

namespace Mp3Recognizer
{
    public partial class Mp3RecognizerForm : Form
    {
        private string path = null;
        public Mp3RecognizerForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //  this.folderBrowserDialog1.SelectedPath = 
            if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
                path = folderBrowserDialog1.SelectedPath;
        }

        private void btnRecognize_Click(object sender, EventArgs e)
        {
            Mp3RecognizerLib lib = new Mp3RecognizerLib();
            lib.RenameAll(path);
        }
    }
}
